home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / bread-cooking.swf / scripts / frame_84 / PlaceObject2_35_25 / CLIPACTIONRECORD onClipEvent(mouseDown).as < prev   
Text File  |  2011-01-13  |  436b  |  21 lines

  1. onClipEvent(mouseDown){
  2.    if(_root.isGameOver)
  3.    {
  4.       return undefined;
  5.    }
  6.    if(this.hitTest(_root._xmouse,_root._ymouse,false))
  7.    {
  8.       if(state < 8 && _root.cursor.getState() == 2)
  9.       {
  10.          state++;
  11.          this.gotoAndStop(8 + state);
  12.          if(state == 8)
  13.          {
  14.             _root.mc_score.nextFrame();
  15.             this.play();
  16.          }
  17.          _root.cursor.normal();
  18.       }
  19.    }
  20. }
  21.